package com.jeespring.storage.dao;

import com.jeespring.entity.Storage;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

/**
 * @Title: StorageDao
 * @Description:
 * @Author 张朝阳
 * @Date 2020/11/29 14:08
 */
public interface StorageDao extends Mapper<Storage> {
    /**
     * 扣减商品库存
     * @Param: commodityCode
     * @Param: count
     * @Return:
     */
    int decrStorage(@Param("commodityCode") String commodityCode, @Param("count") Integer count);
}
